From: Richard M. Stallman Date: Thu, 28 Dec 1995 23:28:35 +0000 (+0000) Subject: (getloadavg) [MSDOS]: Return 0 load instead of failing the call. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~85187 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a7ee71e81512c2abd91c3545c54dbe6b7484e188;p=emacs.git (getloadavg) [MSDOS]: Return 0 load instead of failing the call. --- diff --git a/src/getloadavg.c b/src/getloadavg.c index 7f939d2dbe4..3076012c6d5 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c @@ -732,6 +732,16 @@ getloadavg (loadavg, nelem) : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); #endif /* OSF_MIPS */ +#if !defined (LDAV_DONE) && defined(MSDOS) +#define LDAV_DONE + + /* A faithful emulation is going to have to be saved for a rainy day. */ + for ( ; elem < nelem; elem++) + { + loadavg[elem] = 0.0; + } +#endif /* MSDOS */ + #if !defined (LDAV_DONE) && defined (OSF_ALPHA) #define LDAV_DONE